package com.gugee.tiktok.common.model.mysql;

import com.xiguaji.boot.data.rdb.aggregate.Aggregate;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.relational.core.mapping.Table;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
public class BloggerLog extends Aggregate {
    private long currentBloggerId;
    private int logType;
    private String extValue;
    private String firstPageStartTime;
    private String moreInfo;

    public enum BloggerLogType {

        FETCH_NEW_FOLLOWING(10001),
        FETCH_FOLLOWING_LOOP(10002),
        FETCH_NEW_FOLLOWER(10003),
        FETCH_FOLLOWER_LOOP(10004),
        FETCH_AWEME(10005),
        FETCH_AWEME_LOOP(10006),
        REFRESH_BLOGGER_MAIN_LOOP(10007),
        FETCH_BLOGGER_MAIN(10008),
        FETCH_BLOGGER_MAIN_LOOP(10009),
        REFRESH_BLOGGER_LOOP(10010),
        ES_REFRESH_BLOGGER_MAIN_LOOP(10011),
        REFRESH_BLOGGER_RECORD_LOOP(10012),
        FETCH_AWEME_COMMENT_LOOP(10013),
        REFRESH_BLOGGER_MAIN_CATEGPROES(10014),
        REFRESH_BLOGGER_AWEME_KEYWORD(10015),

        SEND_MUSIC_2_KAFKA(20000),
        SEND_HASHTAG_2_KAFKA(30000),
        SEND_COMMENT_2_KAFKA(40000),
        SEND_COMMENT_2_KAFKA_AWEME_SCORE(40001),
        SEND_KEYWORD_2_KAFKA(50000),
        SEND_MARKER_BLOGGER_2_KAFKA(70000),
        MARKER_UPDATA(60000),
        SEND_AWEWE_2_KAFKA_FANS_PORTRAIT(80000),
        REFRESH_BLOGGER_FANS_PORTRAIT_LOOP(90000);

        BloggerLogType(int value) {
            this.value = value;
        }

        private int value;

        public int getValue() {
            return value;
        }
    }
}
